package com.ybt.router.core.receiver.processor.factory;

import com.ybt.router.core.receiver.processor.IMessageProcessor;
import com.ybt.router.core.receiver.processor.impl.BusinessMessageProcessor;

public class MessageProcessorFactory {
    private static MessageProcessorFactory f;
    private MessageProcessorFactory(){
        
    }
    public static MessageProcessorFactory getInstance(){
        if(f==null){
            f = new MessageProcessorFactory();
        }
        return f;
    }
    public IMessageProcessor createMessageProcessor(String type){
        return new BusinessMessageProcessor();
    }
}
